#include <iostream>
using namespace std;

int main(){
    int arr[10] = {1,2,3,4,5,6,7,8,9,10};

    cout << "整个数组所占的空间:" << sizeof(arr) << endl;
    cout << "每个元素所占的空间:" << sizeof(arr[0]) << endl;
    cout << "数组的元素个数:" << sizeof(arr) / sizeof(arr[0]) << endl;

    cout << "数组的首地址为:" << (long)arr << endl;
    cout << "数组的第一个元素的地址为:" << (long)&arr[0] << endl;
    cout << "数组的第二个元素的地址为:" << (long)&arr[1] << endl;

    return 0;
}